package com.chen.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
/*
* 请假表实体类
* */
@Entity
@Table(name = "s_leave")
public class Leave implements Serializable {
    public static int LEAVE_STATUS_WAIT = 0;//等待审核
    public static int LEAVE_STATUS_AGREE = 1;//同意
    public static int LEAVE_STATUS_DISAGREE = -1;//不同意
    private Integer id;
    private Integer studentId;
    private String info;
    private Integer status=LEAVE_STATUS_WAIT;
    private String remark;

    public Leave() {
    }

    public Leave(Integer id, Integer studentId, String info, Integer status, String remark) {
        this.id = id;
        this.studentId = studentId;
        this.info = info;
        this.status = status;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Leave{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", info='" + info + '\'' +
                ", status=" + status +
                ", remark='" + remark + '\'' +
                '}';
    }
}
